<link rel="stylesheet" href="ccay/example/demo.css"  type="text/css" />
<script type="text/javascript" src="ccay/example/demo.js" charset="utf-8"></script>
<script type="text/javascript" src="ccay/example/ui/showImage/showImage.js" ></script>
 
<div id="showImageDemo">
    <div title='API' tabid='tab1'>
	    <div>
	    	<h2>Ccay.UI.showImage(caller)</h2>
	    	<h3>作用：图片展示</h3><br>
	    	
	    	<div class="ccay-form-body ccay-form-custom">
						<ul>	
						    <li class="ccay-form-row">
						        <samp><h3>参数</h3></samp>
								<span class="ccay-form-input">
									<h3>描述</h3>
								</span>
							</li>
							<li class="ccay-form-row">
						        <samp>caller</samp>
								<span class="ccay-form-input">
									设置图片的地址和title 如：{'img':'xxxx\\xx.jpg','title':'demo'}。锁屏：'openWay':"lock"
								</span>
							</li>
						</ul>
			</div>
	    </div>
	     
    </div>
    <div title='Demo' tabid='tab2'>
		    <form id="demo1" class="init ccay-form" action="">
			    <!--  	<div id="openTry"  style='padding-left:30px'>-->
			    	    <span>输入一个有效的路径:</span>
			    		<ul >
			    			<li  class="ccay-form-input">
							   		<input type="text" id="showImage" name="showImage" style="width: 300px" class="required" value="">
							   		<span class="ccay-button" onclick="Ccay.example.ui.showImage.showImage()">
								 		<a class="ccay-icon confirm"></a>
								 		<label class="i18n" i18nKey="show"></label>
								 	</span>
							   		
			    			</li>
			    		</ul>
			    	<br><br>
		    
				    <h3>html Code</h3>
					<div class='codeArea'>
						<pre id='html1'>
&lt;input type="text" id="showImage2" value="" name="showImage2" style="width: 300px" class="required">
&lt;input type="button" value="show" onclick="showImageFn()"></pre> 
					</div>
					<h3>js Code</h3>
					<div class='codeArea'>
						<pre id='html2'>
showImageFn= function(){
	Ccay.UI.showImage({'img':$("#showImage2").val(),'title':'showImageDemo'});
}</pre>
					</div>
					<div class="try">
						<a onclick="Ccay.example.openTry('#showImageDemo',$('#html2').html(),$('#html1').html())">亲自试一试</a>
					</div>
		</form>	
    </div>
    <div title="试一试" tabid="trytab" >
	    <fieldset class='ccay-demo'>
	    <legend ><h2>代码区</h2></legend>
		   
		   <span>请在下面的文本框中编辑您的代码，然后单击此按钮测试结果  ————></span><input value="try it yourself" type="button" onclick="Ccay.example.runDemo()" /> 

				<div>
				    <table  style="width:100%;">
				      <tr>
				        <td style="width:100%;">
						<h3>js Code:</h3>	
						  <!-- 高度按需来调整。默认最小应为100px -->					
	                      <textarea id="jsTxt" style="height:100px;width:99%;"></textarea>
	                    </td>   
	                  </tr>
	                  <tr>
	                    <td style="width:100%;">
						<h3>html Code:</h3>
						  <!-- 高度按需来调整。默认最小应为100px -->
	                      <textarea id="htmlTxt" style="height:100px;width:99%;"></textarea>
	                    </td>
	                  </tr> 
                    </table>
				</div>
           </fieldset>
        <fieldset class='ccay-demo'>
          <legend ><h2>结果区</h2></legend>
			<div>
				<div style="overflow:auto;" id="demoMainPanel"></div>
			</div>
        </fieldset>
     </div>
	<div title="FAQ">
	  <form class="init ccay-form">
		<div class="ccay-form-body ccay-form-custom">
		    <ul>                     
		        <li class="ccay-form-row">
		            <samp><h3>问题</h3></samp>
		           <span class="ccay-form-input">
		               <h3>解决方案</h3>
		           </span>
		        </li>
		        <!-- 若问题和内容较多，可在li中的class加上ccay-form-whole 
		        <li class="ccay-form-row">
		                          <samp class="i18n" i18nKey=""></samp>                          
		                         <span class="ccay-form-input"></span>
		        </li>  -->
		    </ul>
		</div>
	  </form>                    
	</div>  	 
</div>	 
